package br.com.cast.notafiscal.pagina;

import org.apache.wicket.markup.html.panel.Panel;

import br.com.cast.modelo.NotaFiscal;

public class IncluirNotaFiscal extends Panel {

	private FormNotaFiscal form;

	public IncluirNotaFiscal(String id) {
		super(id);

		setOutputMarkupId(true);

		form = new FormNotaFiscal("formularioNota");
		add(form);

	}

	protected void atualizarCampo(NotaFiscal notaFiscal) {

		form.setDefaultModelObject(notaFiscal);
		form.atualizaListaProdutos();

	}

}
